//存放用户所需要的常量
export const { version } = require("../../package.json");

//存储模板的位置 下载前先找临时目录存放下载的文件
//console.log(process.platform)
export const downLoadDirectory = `${
	process.env[process.platform === "darwin" ? "HOME" : "USERPROFILE"]
}\\.template`;
//console.log(downLoadDirectory);
export const HOME =
	process.env[process.platform === "win32" ? "USERPROFILE" : "HOME"];
//console.log(process.platform)//win32  node运行的操作系统的环境时显示内核相关的信息
//process.env.USERPROFILE  //当前目录下配置的文件

export const RC = `${HOME}/.zfclirc`;

//RC配置下载(模板)的地方
//给github的api来用的
export const DEFAULTS = {
	registry: "zhufeng-cli",
	type: "orgs",
};
